package com.tydic.common.core.utils;

public class ReturnUrlUtil {

    public static String getBordererVerifyAccountUrl(String returnUrlPrefix) {
        return returnUrlPrefix + "/realName?userType=borderer";
    }

    public static String getEnterpriseVerifyAccountUrl(String returnUrlPrefix) {
        return returnUrlPrefix + "/realName?userType=enterprise";
    }

    public static String getBordererVerifyCompanyUrl(String returnUrlPrefix) {
        return returnUrlPrefix + "/realName?userType=borderer";
    }

    public static String getEnterpriseVerifyCompanyUrl(String returnUrlPrefix) {
        return returnUrlPrefix + "/realName?userType=enterprise";
    }

    public static String getInviteBordererUrl(String returnUrlPrefix) {
        return returnUrlPrefix + "/desktop/workbench";
    }

    public static String getEnterpriseOrderContractUrl(String returnUrlPrefix, String orderId, String productId, String quantityUnit) {
        return String.format("%s/orderManagement/detail?id=%s&productId=%s&quantityUnit=%s", returnUrlPrefix, orderId, productId, quantityUnit);
    }

    public static String getBordererOrderContractUrl(String returnUrlPrefix, String orderId, String productId, String orderStatus) {
        return String.format("%s/orderManagementInBM/detail?id=%s&productId=%s&orderStatus=%s", returnUrlPrefix, orderId, productId, orderStatus);
    }
}
